package com.lhl.biz.template.api.shared.domain.vo;

import com.lhl.biz.template.api.shared.domain.dto.ComDTO;
import com.lhl.fw.core.base.BaseVO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @className: TemplateVO
 * @description: 用来提交数据保存或者更新
 * @author: king
 * @date: 2020-06-17 10:13
 **/
@Data
public class TemplateVO extends BaseVO {
    /**
     * 账号
     */
    @NotNull(message = "{TemplateVO.name.NotNull}")
    private String name;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @Past(message = "{invalid}")
    private LocalDate birthday;

    private ComDTO remarks;

    private List<ComDTO> demo;

    private Map<String, ComDTO> demoMap;
}
